Api.WriteOutputByte 方法

將一個位元組寫入實體或模擬 I/O 模組的輸出。

命名空間IntervalZero.KINGSTAR.Local.Api

組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

語法

C#VB
public KsError WriteOutputByte(
       int Index,
       int ByteOffset,
       byte Value
)
Public Function WriteOutputByte(
       Index As Integer,
       ByteOffset As Integer,
       Value As Byte
) As KsError

參數

Index

型別:int

I/O 模組的索引。索引以 0 為起始;別名將影響此參數。

 

ByteOffset

型別:int

指定位元組偏移量到一個位置,以寫入位元組值。最大偏移量由 SlaveStatus 類別中的 OutputLength決定。

 

Value

型別:byte

欲寫入的位元組值。

回傳值

型別:KsError

方法的回傳代碼。

備註

WriteOutputByte 僅能在連結建立並開始啟用時才能呼叫。

可用的 EtherCAT 狀態

ecatOP

範例

C#
N/A

參見

Api 類別

IntervalZero.KINGSTAR.Local.Api 命名空間